package com.daxia.ogmall.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * DecorateRequirement
 */
@Entity
@Table(name = "decoraterequirement") 
public class DecorateRequirement extends BaseModel {
	/**
	 * id
	 */
	@Id
	@GeneratedValue
	@Column(name = "id")
    private Long id;
	/**
	 * 用户
	 */
	@ManyToOne
	@JoinColumn(name = "user_id")
    private User user;
	/**
	 * 户型
	 */
	@ManyToOne
	@JoinColumn(name = "houseType_id")
    private HouseType houseType;
	/**
	 * 风格
	 */
	@ManyToOne
	@JoinColumn(name = "houseStyle_id")
    private HouseStyle houseStyle;
	/**
	 * 面积
	 */
	@Column(name = "area")
    private String area;
	/**
	 * 户型图
	 */
	@Column(name = "houseTypeImage")
    private String houseTypeImage;
	/**
	 * 详细描述
	 */
	@Column(name = "description")
    private String description;
	/**
	 * 发布时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")	
	@Column(name = "createTime")
    private Date createTime;
	
	@ManyToOne
	@JoinColumn(name = "designer_id")
	private Designer designer;
	
	@Column(name = "status")
	private Integer status;
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "expireTime")
	private Date expireTime;
	
	public Long getId() {
    	return id;
    }
	
    public void setId(Long id) {
    	this.id = id;
    }
	
	public User getUser() {
    	return user;
    }
	
    public void setUser(User user) {
    	this.user = user;
    }
	
	public HouseType getHouseType() {
    	return houseType;
    }
	
    public void setHouseType(HouseType houseType) {
    	this.houseType = houseType;
    }
	
	public HouseStyle getHouseStyle() {
    	return houseStyle;
    }
	
    public void setHouseStyle(HouseStyle houseStyle) {
    	this.houseStyle = houseStyle;
    }
	
	public String getArea() {
    	return area;
    }
	
    public void setArea(String area) {
    	this.area = area;
    }
	
	public String getHouseTypeImage() {
    	return houseTypeImage;
    }
	
    public void setHouseTypeImage(String houseTypeImage) {
    	this.houseTypeImage = houseTypeImage;
    }
	
	public String getDescription() {
    	return description;
    }
	
    public void setDescription(String description) {
    	this.description = description;
    }
	
	public Date getCreateTime() {
    	return createTime;
    }
	
    public void setCreateTime(Date createTime) {
    	this.createTime = createTime;
    }

	public Designer getDesigner() {
		return designer;
	}

	public void setDesigner(Designer designer) {
		this.designer = designer;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}
	
}
